
/*
*
* */
Rsd.define('Rsd.Faith.pages.InfoFangWuXinXiImportPage', {
    extend: 'Rsd.container.Page',
    requires: [
        'Rsd.controlEx.ComboBoxEx',
        'Rsd.Faith.stores.KaiFaShangStore',
        'Rsd.Faith.stores.WuYeGongSiStore',
        'Rsd.Faith.stores.YeZhuWeiYuanHuiStore'
    ],
    xtype: 'import-xiaoQuWuYe',
    border: false,
    tabTitle: '小区（物业列表）',
    layout:'fit',
    items:[
        {
            xtype:'grid',
            region: 'center',
            pageIndexChanged:'pageIndexChanged',
            label:{
                xtype: 'grid-tool-bar',
                height:60,width:'100%',
                newButtons:[{text:'上传Excel文件'},{text:'加载数据'},{text:'确认导入'},{text:'撤销本次导入'}],
                searchColumns:[{name:'YeZhuXingMing',text:'业主姓名'},{name:'LouDongHao',text:'楼栋'},{name:'DanYuanHao',text:'单元'}],
                searchHandler:'load'
            },
            "formFields": [
                {
                    "name": "XiaoQuBianHao",
                    "label": {
                        "text": "小区编号",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "YuE",
                    "label": {
                        "text": "余额",
                        "width": 80
                    },
                    "dataindex": "yue",
                    "index": 0,
                    "xtype": "number",
                    "format": "0.00"
                },
                {
                    "name": "JianZhuMianJi",
                    "label": {
                        "text": "建筑面积",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "number",
                    "format": "0.00"
                },
                {
                    "name": "LouDongHao",
                    "label": {
                        "text": "楼栋号",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "ShiHao",
                    "label": {
                        "text": "室号",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "DanYuanHao",
                    "label": {
                        "text": "单元号",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "number"
                },
                {
                    "name": "BeiYongDiZhi",
                    "label": {
                        "text": "备用地址",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "FangWuLeiXing",
                    "label": {
                        "text": "房屋类型",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "BianHao",
                    "label": {
                        "text": "编号",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "FangWuXingZhi",
                    "label": {
                        "text": "房屋性质",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "YeZhuXingMing",
                    "label": {
                        "text": "业主姓名",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "text"
                },
                {
                    "name": "ShouQiJiaoCunJinE",
                    "label": {
                        "text": "首期缴存金额",
                        "width": 80
                    },
                    "index": 0,
                    "xtype": "number",
                    "format": "0.00"
                },
                {
                    "name": "ProjectId",
                    "label": {
                        "text": "所属项目",
                        "width": 80
                    },
                    "index": 6,
                    "xtype": "text"
                },
                {
                    "name": "Remark",
                    "label": {
                        "text": "备注",
                        "width": 80
                    },
                    "index": 200,
                    "xtype": "text"
                }
            ],
            "columns": [
                {
                    "text": "序号",
                    "xtype": "index",
                    "width": 40,
                    "index": 0
                },
                /*{
                    "name": "XiaoQuBianHao",
                    "text": "小区编号",
                    "index": 0,
                    "width": 80,
                },*/
                {
                    //"xtype":"template",
                    "name": "BianHao",
                    "text": "房屋编号",
                    "sortable": true,
                    "index": 0,
                    "width": 150,
                    "nobr": true
                },
                {
                    "name": "YeZhuXingMing",
                    "text": "业主姓名",
                    "sortable": false,
                    "index": 0,
                    "width": 70,
                    "nobr": true
                },
                {
                    "name": "FangWuLeiXing",
                    "text": "房屋类型",
                    "sortable": false,
                    "index": 0,
                    "width": 70,
                    "nobr": true
                },
                {
                    "name": "LouDongHao",
                    "text": "楼栋号",
                    "sortable": true,
                    "index": 0,
                    "width": 50,
                    "nobr": true
                },
                {
                    "name": "DanYuanHao",
                    "text": "单元号",
                    "sortable": true,
                    "index": 0,
                    "xtype": "number",
                    "width": 50
                },
                {
                    "name": "ShiHao",
                    "text": "室号",
                    "sortable": true,
                    "index": 0,
                    "width": 50,
                    "nobr": true
                },
                {
                    "name": "FangWuXingZhi",
                    "text": "房屋性质",
                    "sortable": false,
                    "index": 0,
                    "width": 70,
                    "nobr": true
                },

                {
                    "name": "JianZhuMianJi",
                    "text": "建筑面积",
                    "sortable": false,
                    "index": 0,
                    "xtype": "number",
                    "width": 80,
                    "precision": 0
                },
                {
                    "name": "JiaoCunJinE",
                    "text": "缴存金额",
                    "sortable": false,
                    "index": 0,
                    "xtype": "number",
                    "width": 100,
                    "precision": 0
                },
                {
                    "name": "BeiYongDiZhi",
                    "text": "地址",
                    "sortable": false,
                    "index": 0,
                    "width": 200,
                    "nobr": true
                },
                {
                    "name": "Remark",
                    "text": "备注",
                    "sortable": false,
                    "index": 200,
                    "width": 50,
                    "nobr": true
                }
            ]

        }
    ],
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
    },
    load:function () {

    }
});